import unittest

def f():
    a = [1, 2]
    return a[2]


def g():
    a = {}
    return a['b']


def h():
    o = object()
    o.bla


class FooTest(unittest.TestCase):
    def testA(self):
        self.assertFalse(True)

    def testB(self):
        raise Exception('foo')
        self.assertFalse(False)

    def testC(self):
        self.assertEqual(2, f())

    def testD(self):
        self.assertEqual(2, g())

    def testE(self):
        self.assertEqual(2, h())


if __name__ == '__main__':
    unittest.main()
